package com.example.project.service.serviceimpl;

import com.example.project.mapper.TeacherMapper;
import com.example.project.pojo.Teacher;
import com.example.project.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherServiceImpl implements TeacherService {
    //依赖注入
    @Autowired
    TeacherMapper teacherMapper;

    @Override
    public List<Teacher> GetTeacherAll(){
        return teacherMapper.getTeacher();
    }
}
